[paket]
tanim   = Yetkilendirme araç seti
paketci = milisarge
grup    = sistem
url     = https://www.freedesktop.org/wiki/Software/polkit

[gerek]
derleme = automake intltool glib gobject-introspection duktape
calisma =

[kaynak]
gz      = https://www.freedesktop.org/software/polkit/releases
dosya   = polkit-1.pam
dosya   = polkit-$surum-duktape.patch
dosya   = CVE-2021-4034-pkexec-fix.patch

[sha256]
1       = ee7a599a853117bf273548725719fa92fabd2f136915c7a4906cee98567aee03
2       = 336599f2092de0f728d674dbc4bb5ed35f3ca832a0ab4f2ea1f4748b0c89fcd3

[derle]
yama    = polkit-$surum-duktape.patch
yama    = CVE-2021-4034-pkexec-fix.patch
betik   = sed -i -e "/^SUBDIRS/s/polkitbackend//" test/Makefile.am
betik   = autoreconf
betik   = sed -e 's,/sys/fs/cgroup/systemd/,/sys/fs/cgroup,g' -i configure
ekconf  = --disable-systemd --disable-libsystemd-login --disable-libelogind --disable-static --with-authfw=pam  --with-os-type=milis --disable-examples --with-duktape
tip     = gnu

[pakur]
tip     = gnu
betik   = install -d -o root -g 102 -m 750 "$PKG"/{etc,usr/share}/polkit-1/rules.d
betik   = cp -rf $SRC/polkit-1.pam $PKG/etc/pam.d/polkit-1
